import request from '@/utils/request'

// 查询列表
export function listPore(query) {
  return request({
    url: '/kyhs/drill/page',
    method: 'get',
    params:{
      page:query.pageNum,
      pageSize:query.pageSize,
      id:query.borerId
    }
  })
}

// 查询详细
export function getPore(id) {
  return request({
    url: '/kyhs/drill/select-by-id',
    method: 'get',
    params:{
      id
    }
  })
}

// 新增
export function addPore(data) {
  return request({
    url: '/kyhs/drill/save-one',
    method: 'post',
    data:data
  })
}

// 修改
export function updatePore(data) {
  return request({
    url: '/kyhs/drill/update-one',
    method: 'put',
    data: data
  })
}

// 删除
export function delPore(data) {
  return request({
    url: '/kyhs/drill/delete-one',
    method: 'delete',
    data:data
  })
}
